﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="StockListForm.aspx.cs" 
Inherits="UILGestion.AlmacenAdmin.StockListForm" %>

<%@ Register Assembly="WebLib" Namespace="WebLib" TagPrefix="cc3" %>
<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="cc2" %>
<%@ Register Assembly="CustomControls" Namespace="CustomControls" TagPrefix="cc1" %>
<%@ Register src="~/Control/menuCtrl.ascx" tagname="menuObraCtrl" tagprefix="uc1" %>
<%@ Register src="SaldoInsumoGrid.ascx" tagname="SaldoInsumoGrid" tagprefix="uc2" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title></title>
      <link href="../css/main.css" rel="stylesheet" type="text/css" />
   <link href="../css/main.css" rel="stylesheet" type="text/css" />
    <link href="../resources/css/main.css" rel="stylesheet" type="text/css" />
    <link rel="stylesheet" type="text/css" href="../estilos/_common/styles/fonts.css" />
 <link rel="stylesheet" type="text/css" href="../estilos/_common/styles/global.css" />
 <link rel="stylesheet" type="text/css" href="../estilos/_common/styles/theme.css" />

    <script type="text/javascript">
        function Select(inp, data) {
            inp.value = data[2];
        };
    
    </script>

</head>
<body>
        <form id="form1" runat="server">
    <cc2:ToolkitScriptManager ID="ToolkitScriptManager1" runat="server" EnableScriptGlobalization="true">
    </cc2:ToolkitScriptManager>
     <input id="idObra" type="hidden" runat="server"/>
     <input id="idAlmacen" type="hidden" runat="server"/>
     
     <uc1:menuObraCtrl ID="menuObraCtrl1" runat="server" />
   
      
        <asp:Panel ID="mainPanel1" runat="server" 
                 CssClass="Heading secTitle AreaHeading ms-crm-List-Header " >

       
        
                 
                 <asp:Label ID="tituloFormLBL" runat="server" Text="SALDO ACTUAL" 
                         style="font-size: large; color: #960818"></asp:Label>
</asp:Panel>
   <asp:Panel ID="PanelButtom" runat="server"  BackColor="white"     >

              
       
        
        <table  >
       
        <tr>
        <td class="style1">
            Insumo:</td>
        <td>
            <cc3:Input ID="InsumoInput"  runat="server" Text=""  Width="300px"  AutoPostBack="true" 
             DataType="List" 
             NumColum="2"
             method="GetRecursos"  
              OnSelect="Select"
              >
            </cc3:Input>




        </td>
            <td>

            
                <asp:ImageButton ID="actualizaBTN" ImageUrl="../../Images/find.png" runat="server" CssClass="ms-crm-List-Header" Text="Buscar"  
                     />
                      <asp:UpdateProgress ID="UpdateProgress1" runat="server" >
                    <ProgressTemplate>
                        <img src="../../App_Resources/images/loader-life.gif" alt="Loading Data" />
                    </ProgressTemplate>
                </asp:UpdateProgress>
            </td>
        </tr>
        </table>
       
      <br />

     </asp:Panel>
  
  
     
      <asp:Panel ID="pnlMain" runat="server" BackColor="White">
 
     <asp:UpdatePanel runat="server" ID="update"  >
  <ContentTemplate>
       
     <uc2:SaldoInsumoGrid ID="SaldoInsumoGrid1" runat="server" DataSourceID="SaldoKardexODS" />
       <asp:ObjectDataSource ID="SaldoKardexODS" runat="server" EnablePaging="True" 
        SelectCountMethod="Count" SelectMethod="getSaldoActualList" SortParameterName="sortExpression"
        TypeName="BOL.KardexBL">
        <SelectParameters>
            
            <asp:querystringparameter  Name="idAlmacen" Type="Int32" querystringfield="idAlmacen"  />
            <asp:ControlParameter Name="prefixText"  ControlID="InsumoInput"  PropertyName="Text"/>
            <asp:Parameter Name="startRowIndex" Type="Int32" />
            <asp:Parameter Name="maximumRows" Type="Int32" />
            <asp:Parameter Name="sortExpression" Type="String" />
        </SelectParameters>
        
    </asp:ObjectDataSource>
    

        </ContentTemplate>
        <Triggers>
        <asp:AsyncPostBackTrigger ControlID="InsumoInput" />
        <asp:AsyncPostBackTrigger ControlID="actualizaBTN" />
        
        </Triggers>
    </asp:UpdatePanel>
 
   </asp:Panel>
    </form>
</body>
</html>
